import Path from "./Path";

export default {
    mixins: [Path],
    props: {
        smoothing: {
            type: Number,
            custom: true,
            default: 0.15,
        },
    },
    data() {
        return {
            ready: false,
        };
    },
    mounted() {
        this.splineOptions = {
            ...this.pathOptions,
            smoothing: this.smoothing,
        };
    },
    methods: {
        setSmoothing(newVal) {
            this.mapObject.setStyle({ smoothing: newVal });
        },
        addLatLng(value) {
            this.mapObject.addLatLng(value);
        },
    },
};
